package org.Boring.ODCode.Easy;

import java.util.Scanner;

//将一个字符串str的内容颠倒过来，并输出。
//输入：
//I am a student
//输出：
//tneduts a ma I
public class HJ106 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        StringBuffer stringBuffer = new StringBuffer(s);
        System.out.println(stringBuffer.reverse());
    }
}
